package model

import "gorm.io/gorm"

// Repo 仓库表
type Repo struct {
	gorm.Model
	RepoName    string `gorm:"type:varchar(50);comment:仓库名称"`
	RepoAddress string `gorm:"type:varchar(50);comment:仓库地址"`
}

// Shop 门店表
type Shop struct {
	gorm.Model
	Rid         int    `gorm:"type:int;comment:仓库id"`
	ShopName    string `gorm:"type:varchar(50);comment:门店名"`
	ShopAddress string `gorm:"type:varchar(100);comment:门店地址"`
	ShopContent string `gorm:"type:varchar(100);comment:门店简介"`
}

// User 用户表
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50);comment:用户名"`
	Password string `gorm:"type:varchar(255);comment:密码"`
}
